using System.Data.Entity.ModelConfiguration;

namespace ObjectMapper.Benchmark.DataModel
{
    internal class CultureConfiguration : EntityTypeConfiguration<Culture>
    {
        public CultureConfiguration()
        {
            ToTable("Production.Culture");
            HasKey(x => x.CultureId);

            Property(x => x.CultureId).HasColumnName("CultureID").IsRequired().HasMaxLength(6);
            Property(x => x.Name).HasColumnName("Name").IsRequired().HasMaxLength(50);
            Property(x => x.ModifiedDate).HasColumnName("ModifiedDate").IsRequired();
        }
    }
}